This Dataverse contains all scripts and data to replicate the analyses in "Government Rhetoric and the Representation of Public Opinion in International Negotiations", American Political Science Review.

The Dataverse contains:
- The two supplementary materials containing the appendices ("0_Supplemental Materials 1.pdf", "0_Supplemental Materials 2.pdf")
- 13 data preparation and analysis R-scripts (numbered) and 1 Stata do-file ("11_bargaining_success.do")
- A codebook for the main analysis dataset ("Codebook for corpus_final.RData.docx")
- An R-script with customized functions ("99_functions.R")
- The folder "data" with all primary datasets used
- The folder "do files" with a STATA do file to reproduce the Eurobarometer public opinion series
- The folder "figures_appendix" with all figures in the appendices
- The folder "figures_main_paper" with all figures in the paper
- The folder "generated_data" with all datasets created by the R scripts

All analyses were performed on MacOS BigSur with an Apple M1 chip.

Below we provide information on our R version, R packages, and a mapping of tables and figures to R-scripts. If you want to replicate the results selectively, you can choose the respective R-script(s) below and run them (please always consider header information in these files). If you want to replicate all results, you can run the scripts consecutively by number, from "1_data_setup.R" to "14_bootstrapping_analysis.R".


R.version information:

platform       x86_64-apple-darwin17.0     arch           x86_64                      os             darwin17.0                  system         x86_64, darwin17.0          status                                     major          4                           minor          2.1                         year           2022                        month          06                          day            23                          svn rev        82513                       language       R                           version.string R version 4.2.1 (2022-06-23)nickname       Funny-Looking Kid           

#### Packages ####

broom.mixed  	      	version 0.2.9.4
cowplot     	      	version 1.1.1
devtools              	version:2.4.4
effects     	      	version 4.2-2
ggeffects   	      	version 1.1.2
ggpubr      	      	version 0.4.0
interplot   	      	version 0.2.3
lexicon                 version 1.2.1
lme4        	      	version 1.1-30
multiwayvcov            version 1.2.3
quanteda              	version 3.2.1
quanteda.textstats    	version 0.95
quanteda.dictionaries 	version 0.31
readstata13 	      	version 0.10.0
readxl	    	      	version 1.4.0
reshape		      	version 0.8.9
reshape2	      		version 1.4.4
sjPlot	    	      	version 2.8.11
stargazer   	      	version 5.2.3
stm 	    	      	version 1.3.6
textstem    	      	version 0.1.4
tidytext    	      	version 0.3.3
tidyverse   	      	version 1.3.2
xtable      	      	version 1.8-4 

#### Tables ####

Table A1: Script #1
Table A2: Script #3
Table A3: Script #3
Table A4: Script #1
Table C1: Script #10
Table C2: Script #10
Table C3: Script #10
Table C4: Script #10
Table D1: Script #8
Table D2: Script #8
Table E1: Script #8
Table E2: Script #8
Table F1: Script #1
Table H1: Script #11
Table H2: Script #13
Table I2: Script #3
Table I3: Script #3
Table I4: Script #3
Table I5: Script #3
Table I6: Script #3
Table I7: Script #3
Table I8: Script #14
Table J1: Script #4
Table J2: Script #1
Table J3: Script #4
Table J4: Script #4
Table J5: Script #4
Table J6: Script #4
Table J7: Script #4
Table K1: Script #5
Table K2: Script #5
Table K3: Script #5
Table K4: Script #5
Table K5: Script #5
Table K6: Script #5
Table K7: Script #5
Table K8: Script #5
Table K9: Script #5
Table L1: Script #9

#### Figures ####

Figure 1:   Script #1
Figure 2:   Script #3
Figure 3:   Script #3
Figure 4:   Script #3
Figure 5:   Script #9
Figure A1:  Script #6
Figure A2:  Script #1
Figure A3:  Script #1
Figure C1:  Script #10
Figure C2:  Script #10
Figure E1:  Script #9
Figure I1:  Script #3
Figure I2:  Script #3
Figure I3:  Script #3
Figure I4:  Script #3
Figure I6:  Script #3
Figure I7:  Script #3
Figure I8:  Script #3
Figure J1:  Script #4
Figure J2:  Script #4
Figure J3:  Script #4
Figure J4:  Script #4
Figure J5:  Script #4
Figure J6:  Script #4
Figure J7:  Script #4
Figure J8:  Script #4
Figure J9:  Script #4
Figure J10: Script #4
Figure J11: Script #4
Figure J12: Script #4
Figure J13: Script #4
Figure H1:  Script #11
Figure H2:  Script #13
Figure I5:  Script #12
Figure K1:  Script #5
Figure K2:  Script #5
Figure K3:  Script #5
Figure K4:  Script #3
Figure K5:  Script #5
Figure K6:  Script #5
Figure K7:  Script #5
Figure K8:  Script #5

Attention: If you use data from this Dataverse for other purposes, please consider the notes in "Codebook for corpus_final.RData.docx" regarding the use of Manifesto Project data.

If you encounter any issues or have questions on the replication files, please contact Jens Wäckerle (jens.waeckerle@uni-koeln.de).

